package pers.vic.grow.netty.chapter_1_07;

import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.SocketChannel;

/**
 * @author Vic.xu
 * @description:
 * @date: 2021/9/8 0008 17:19
 */
public class MyChannelInitializer  extends ChannelInitializer<SocketChannel> {
    @Override
    protected void initChannel(SocketChannel socketChannel) throws Exception {
        System.out.println("链接报告开始");
        System.out.println("链接报告信息：本客户端链接到服务端。channelId：" + socketChannel.id());
        System.out.println("链接报告完毕");
    }
}
